<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkPageSetupUnixDialog</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="Printing.html" title="打印">
<link rel="prev" href="gtk3-GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">
<link rel="next" href="MiscObjects.html" title="杂项">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk3-GtkPrintUnixDialog.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="Printing.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="MiscObjects.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkPageSetupUnixDialog.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkPageSetupUnixDialog.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkPageSetupUnixDialog"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkPageSetupUnixDialog.top_of_page"></a>GtkPageSetupUnixDialog</span></h2>
<p>GtkPageSetupUnixDialog — A page setup dialog</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkPageSetupUnixDialog.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtkpagesetupunixdialog.h&gt;

struct              <a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog">GtkPageSetupUnixDialog</a>;
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkPageSetupUnixDialog.html#gtk-page-setup-unix-dialog-new" title="gtk_page_setup_unix_dialog_new ()">gtk_page_setup_unix_dialog_new</a>      (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWindow.html#GtkWindow" title="GtkWindow"><span class="type">GtkWindow</span></a> *parent</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPageSetupUnixDialog.html#gtk-page-setup-unix-dialog-set-page-setup" title="gtk_page_setup_unix_dialog_set_page_setup ()">gtk_page_setup_unix_dialog_set_page_setup</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPageSetup.html#GtkPageSetup" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *page_setup</code></em>);
<a class="link" href="gtk3-GtkPageSetup.html#GtkPageSetup" title="GtkPageSetup"><span class="returnvalue">GtkPageSetup</span></a> *      <a class="link" href="gtk3-GtkPageSetupUnixDialog.html#gtk-page-setup-unix-dialog-get-page-setup" title="gtk_page_setup_unix_dialog_get_page_setup ()">gtk_page_setup_unix_dialog_get_page_setup</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkPageSetupUnixDialog.html#gtk-page-setup-unix-dialog-set-print-settings" title="gtk_page_setup_unix_dialog_set_print_settings ()">gtk_page_setup_unix_dialog_set_print_settings</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintSettings" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> *print_settings</code></em>);
<a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintSettings" title="GtkPrintSettings"><span class="returnvalue">GtkPrintSettings</span></a> *  <a class="link" href="gtk3-GtkPageSetupUnixDialog.html#gtk-page-setup-unix-dialog-get-print-settings" title="gtk_page_setup_unix_dialog_get_print_settings ()">gtk_page_setup_unix_dialog_get_print_settings</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkPageSetupUnixDialog.description"></a><h2>Description</h2>
<p>
<a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> implements a page setup dialog for platforms
which don't provide a native page setup dialog, like Unix. It can
be used very much like any other GTK+ dialog, at the cost of
the portability offered by the high-level printing API
</p>
<p>
Printing support was added in GTK+ 2.10.
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkPageSetupUnixDialog.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkPageSetupUnixDialog"></a><h3>struct GtkPageSetupUnixDialog</h3>
<pre class="programlisting">struct GtkPageSetupUnixDialog {
  GtkDialog parent_instance;

  GtkPageSetupUnixDialogPrivate *priv;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-page-setup-unix-dialog-new"></a><h3>gtk_page_setup_unix_dialog_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_page_setup_unix_dialog_new      (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWindow.html#GtkWindow" title="GtkWindow"><span class="type">GtkWindow</span></a> *parent</code></em>);</pre>
<p>
Creates a new page setup dialog.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
<td>the title of the dialog, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
<td>transient parent of the dialog, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-page-setup-unix-dialog-set-page-setup"></a><h3>gtk_page_setup_unix_dialog_set_page_setup ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_page_setup_unix_dialog_set_page_setup
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPageSetup.html#GtkPageSetup" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *page_setup</code></em>);</pre>
<p>
Sets the <a class="link" href="gtk3-GtkPageSetup.html#GtkPageSetup" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> from which the page setup
dialog takes its values.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>page_setup</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPageSetup.html#GtkPageSetup" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-page-setup-unix-dialog-get-page-setup"></a><h3>gtk_page_setup_unix_dialog_get_page_setup ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkPageSetup.html#GtkPageSetup" title="GtkPageSetup"><span class="returnvalue">GtkPageSetup</span></a> *      gtk_page_setup_unix_dialog_get_page_setup
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>);</pre>
<p>
Gets the currently selected page setup from the dialog.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the current page setup. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-page-setup-unix-dialog-set-print-settings"></a><h3>gtk_page_setup_unix_dialog_set_print_settings ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_page_setup_unix_dialog_set_print_settings
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintSettings" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> *print_settings</code></em>);</pre>
<p>
Sets the <a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintSettings" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> from which the page setup dialog
takes its values.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>print_settings</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintSettings" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-page-setup-unix-dialog-get-print-settings"></a><h3>gtk_page_setup_unix_dialog_get_print_settings ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkPrintSettings.html#GtkPrintSettings" title="GtkPrintSettings"><span class="returnvalue">GtkPrintSettings</span></a> *  gtk_page_setup_unix_dialog_get_print_settings
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>);</pre>
<p>
Gets the current print settings from the dialog.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog" title="struct GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the current print settings. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>